package com.dw.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @ClassName: StrTest.java
 * @Description: 测试主键是字符串 
 * @author: wangxingchao
 * @date: 2015年7月9日 下午3:21:37
 */
@Entity
@Table(name="strTest")
public class StrTest extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6305387968166793178L;
	
	@Id
	@Column(name="id",length=6)
	private String user_id;
	
	@Column(name="name",length=16)
	private String name;
	
	@Column(name="sex",length=2)
	private String sex;

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

}
